home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-4.0 / gdb / doc / threecol.tex < prev    next >
Encoding:
Text File  |  1991-08-24  |  1.0 KB  |  29 lines

  1. %Three-column format for landscape printing on 8.5x11 paper
  2. %pesch 1990 december 31
  3. %We want output .25 inch *from paper edge*; i.e. -.75in from TeX default
  4. \hoffset=-0.8in \voffset=-0.75in
  5. \newdimen\fullhsize
  6. \fullhsize=10.5in \hsize=3.3in
  7. \def\fulline{\hbox to \fullhsize}
  8. \let\lcr=L \newbox\leftcolumn\newbox\centercolumn
  9. \output={\if L\lcr
  10.             \global\setbox\leftcolumn=\columnbox \global\let\lcr=C
  11.      \else
  12.             \if C\lcr
  13.                \global\setbox\centercolumn=\columnbox \global\let\lcr=R
  14.             \else \tripleformat \global\let\lcr=L
  15.             \fi
  16.          \fi
  17. %         \ifnum\outputpenalty>-20000 \else\dosupereject\fi
  18.       }
  19. \def\tripleformat{\shipout\vbox{\fulline{\box\leftcolumn\hskip .2in plus1fil
  20.                                          \box\centercolumn\hskip .2in plus1fil
  21.                                          \columnbox}
  22.                    }
  23.                  \advancepageno}
  24. \def\columnbox{\leftline{\pagebody}}
  25. \def\bye{\par\vfill
  26.          \supereject
  27.          \if R\lcr \null\vfill\eject\fi
  28.          \end}
  29.